class XCCondition{
    public static CreateCondition(node:XXLNode, type : number):XCCondition{
        let list = Array<XXLNode>();
        list.push(node);
        return new XCCondition(list, type);
    }

    public constructor(list : Array<XXLNode>, type : number){
        this._list = (list == null) ? new Array<XXLNode>() : list;
        this._type = type;
        this._canXC = this._list.length >= 3;
    }    

    public get type(){ return this._type; }

    public get list(){ return this._list; }

    public get canXC(){
        this._canXC = (this._list != null && this._list.length >= 3) ? true : false;
        return this._canXC;
    }

    private _type : number;             // 1:竖 2横
    private _canXC : boolean;
    private _list : Array<XXLNode>;
}